package cn.virens.server.aio.handler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import cn.virens.server.aio.channel.AioChannel;
import cn.virens.server.common.ReadPacket;

public abstract class PacketHandler {
	protected final Logger logger = LoggerFactory.getLogger(getClass());

	public abstract boolean can(int cmd) throws Exception;

	public abstract void handle(AioChannel channel, ReadPacket packet) throws Exception;
}
